﻿<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">


<title>Netcare Agent Readme.htm</title><style type="text/css"> UL.toc, OL.toc { list-style: none; font-family: arial } UL, OL { font-family: arial } LI.tocline1 { font-weight: bold; font-family: arial } LI.tocline2 { font-weight: normal; font-family: arial; text-indent: 2em; }LI.tocline3 { font-weight: normal; font-family: arial; text-indent: 4em; }P { font-size: 0.8em; font-family: arial }H1, H2, H3, H4, span, LI { font-family: arial }</style></head><body>
<h1>
Netcare Agent Readme
</h1>

<ul class="toc">
<li class="tocline1">1. <a href="#System%20Requirements">System Requirements</a></li>
<li class="tocline2">1.1. <a href="#Supported%20Architectures">Supported Architectures</a></li>
<li class="tocline2">1.2. <a href="#Supported%20Operating%20Systems">Supported Operating Systems</a></li>
<li class="tocline2">1.3. <a href="#Hardware%20Requirements">Hardware Requirements</a></li>
<li class="tocline1">2. <a href="#Known%20Issues">Known Issues</a></li>
<li class="tocline2">2.1. <a href="#Windows">Windows</a></li>
<li class="tocline2">2.2. <a href="#Linux">Linux</a></li>
<li class="tocline1">3. <a href="#Function">Function</a></li>
</ul>
<h2>
1. <a name="System Requirements">System Requirements</a>
</h2>
<p><b>1.1 <a name="Supported Architectures">Supported Architectures:</a></b></p>
    <ul style="font-size: small;">
        <li class="style1">x86</li>
        <li class="style1">x64</li>
    </ul>
<p><b>1.2 <a name="Supported Operating Systems">Supported Operating Systems:</a></b></p>
    <ul style="font-size: small;">
        <li>Windows Server 2003 SP1(x86 and x64)</li>
        <li>Windows Server 2003 SP2(x86 and x64)</li>
        <li>Windows Server 2003 R2 (x86 and x64)</li>
        <li>Windows Server 2008 SP1(x86 and x64)</li>
        <li>Windows Server 2008 SP2(x86 and x64)</li>
        <li>Windows Server 2008 R2 (x86 and x64)</li>
        <li>Linux Ubuntu (x86 and x64)</li>
        <li>Linux SUSE/OPENSUSE (x86 and x64)</li>
        <li>Linux Fedora (x86 and x64)</li>
        <li>Linux RedHat (x86 and x64)</li>
        <li>Linux RedFlag (x86 and x64)</li>
    </ul>
<p><b>1.3 <a name="Hardware Requirements">Hardware Requirements:</a></b></p>
    <ul style="font-size: small;">
        <li>Computer that has a 1.6 GHz or faster processor</li>
        <li>RAM</li>
            <ul style="font-size: small;">
            <li>256 MB RAM for x86</li>
            <li>512 MB RAM for x64</li>
            </ul>
        <li>20 MB of available hard-disk space</li>
        <li>5400 RPM hard disk</li>
        <li>1 Ethernet Card</li>
    </ul>

<h2>
2. <a name="Known Issues">Known Issues</a>
</h2>
<h3>
2.1 <a name="Windows">Windows</a>
</h3>
<p>windows下测试了32位的windows server 2003和64位的windows server 2008，均正常安装。</p>
<p>安装方法请参见用户手册安装部分</p>
<h3>
2.2  <a name="Linux">Linux</a>
</h3>
<p>linux下可在32位的Ubuntu,RedHat,Redflag,OpenSUSE,Fedora和64位的Ubuntu,OpenSUSE,SUSE安装,防火墙默认的是iptables，如果选用其他防火墙则需要client端自行开启端口，如SuSEfirewall2,目前client端用户只能用root登陆安装。</p>
<p>安装方法请参见用户手册安装部分</p>

<h2>
3 <a name="Function">Function</a>
</h2>
<ul style="font-size: small;">
    <li>GetAgentinfo</li>
        <ul style="font-size: small;">
        <li>获取netcare-agent版本信息</li>
        <li>传入参数：无</li>
        <li>返回：string</li>
        </ul>
    <li>GetProcesses</li>
        <ul style="font-size: small;">
        <li>获取所有进程信息</li>
        <li>传入参数：无</li>
        <li>返回：class ProcessInfo { int ProcessId，string ImageName, 
            string FullPath, 
            long NonpagedSystemMemorySize64, 
	        long PagedMemorySize64, 
	        long PeakPagedMemorySize64, 
	        long PeakVirtualMemorySize64, 
	        long PrivateMemorySize64 }</li>
        </ul>
    <li>GetSystemInfo</li>
        <ul style="font-size: small;">
        <li>获取所有进程信息</li>
        <li>传入参数：无</li>
        <li>返回：class SystemInfo { 
            string OperatingSystem, 
	        string Product, 
	        string Manufactory, 
	        string Version, 
	        string ComputerName, 
	        string Architecture, }</li>
        </ul>
    <li>KillProcess</li>
        <ul style="font-size: small;">
        <li>根据进程号删除指定的进程</li>
        <li>传入参数：int pid</li>
        <li>返回：bool </li>
        </ul>
    <li>RestartService</li>
        <ul style="font-size: small;">
        <li>根据服务名称重启服务</li>
        <li>传入参数：string SerivceName</li>
        <li>返回：bool </li>
        </ul>
    <li>RestartOS</li>
        <ul style="font-size: small;">
        <li>重启系统</li>
        <li>传入参数：无</li>
        <li>返回：无 </li>
        </ul>
    <li>MemoryRelease</li>
        <ul style="font-size: small;">
        <li>内存整理</li>
        <li>传入参数：int Commend</li>
        <li>返回：int </li>
        </ul>
    <li>DiskRelease</li>
        <ul style="font-size: small;">
        <li>磁盘碎片整理</li>
        <li>传入参数：enum RunType：Run执行磁盘整理，Check检查磁盘整理运行状况</li>
        <li>返回：enum ReturnValue：WRONG运行错误，RUNNING正在运行，FREE空闲或运行完毕 </li>
        </ul>
    <li>EnumServices</li>
        <ul style="font-size: small;">
        <li>重启系统</li>
        <li>传入参数：无</li>
        <li>返回：class ServiceInfo
            {
                public int PID { get; set; }
                public ServiceStatus Status { get; set; }
                public string ShortName { get; set; }
                public string DisplayName { get; set; }
            }
            其中
            enum ServiceStatus
            {
                SERVICE_STOPPED,
                SERVICE_STOP_PENDING,
                SERVICE_START_PENDING,
                SERVICE_RUNNING,
                SERVICE_PAUSED,
                SERVICE_PAUSE_PENDING,
                SERVICE_CONTINUE_PENDING,
                SERVICE_UNKNOW
            } </li>
        </ul>
</ul>


<p>
</p><p>&#169; 2010 Wicresoft Corporation. All rights reserved.</p>


</body></html>